package com.glela.packet.service;

import com.glela.packet.model.RedPacket;

import java.math.BigDecimal;
import java.util.List;

public interface RedPacketService {

    boolean batchSaveRedPacket(List<RedPacket> redPacketList);

    RedPacket getRedPacketById(int id);

    BigDecimal queryTotalRedPacketByUserId(long userId);

    boolean updateRedPacket(RedPacket redPacket);

    boolean saveRedPacket(RedPacket redPacket);

    boolean updateRedPacketAll(RedPacket redPacket);
}


